package com.study.thread;

/**
 * @author geticsen
 */
public class ThreadNoneLock {
    static class ThreadA implements Runnable {
        @Override
        public void run() {
            for (int i = 0; i < 50; i++) {
                System.out.println("i1 = " + i);
            }
        }
    }

    static class ThreadB implements Runnable {
        @Override
        public void run() {
            for (int i = 0; i < 50; i++) {
                System.out.println("i2 = " + i);
            }
        }
    }

    public static void main(String[] args) {
        Thread thread = new Thread(new ThreadA());
        thread.start();
        thread.start();

        new Thread(new ThreadB()).start();

    }
}
